<template>
  <div id="app">
    <flow-process-only
      :projectName="projectName"
      @changeProjectName="handleChangeProjectName"
    ></flow-process-only>
  </div>
</template>

<script>
import FlowProcessOnly from "./components/flow-process-only/index.vue";

export default {
  name: "App",
  components: {
    FlowProcessOnly,
  },
  data() {
    return {
      projectName: "proj1",
    };
  },
  methods: {
    handleChangeProjectName(newProjectName) {
      if (this.projectName !== newProjectName) {
        this.projectName = newProjectName;
      }
    },
  },
};
</script>

<style>
/* 导入 iconfont */
@import url(//at.alicdn.com/t/font_2342281_qkt0lpgopz.css);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

#app {
  width: 100%;
  height: 100vh;
  background-color: #f7f7f7;
}
</style>
